import request from '@/utils/request'

// 获取关键数据
export function allData(params) {
    return request({
        url: '/manager/active_data/allData',
        method: 'get',
        params
    })
}

//
export function trendHourChart(params) {
    return request({
        url: '/manager/active_data/trendHourChart',
        method: 'get',
        params
    })
}

//
export function trendDayChart(params) {
    return request({
        url: '/manager/active_data/trendDayChart',
        method: 'get',
        params
    })
}

export function trendMonthChart(params) {
    return request({
        url: '/manager/active_data/trendMonthChart',
        method: 'get',
        params
    })
}

//根据小时导出
export function reqTrendHourChartExport(data) {
  return request({
    url: '/manager/active_data/trendHourChartExport',
    method: 'post',
    data: data,
  })
}
//根据天导出
export function reqTrendDayChartExport(data) {
  return request({
    url: '/manager/active_data/trendDayChartExport',
    method: 'post',
    data: data,
  })
}
//根据月导出
export function reqTrendMonthChartExport(data) {
  return request({
    url: '/manager/active_data/trendMonthChartExport',
    method: 'post',
    data: data,
  })
}
